<div class="box">
	<div class="heading">
		<h1><img src="/assets/admin/book.png" alt="" /><%= t('View Book') %></h1>
	</div>
	<div class="content">

		<div class="imagebook">
			<div>
				<% if @book.image_url %>
				<%= image_tag @book.image_url, :class => "dashboard-content" %>
				<% else%>
				<%= image_tag 'admin/no_image.jpg', :class => "dashboard-content" %>
				<% end %>
			</div>
		</div>

		<div class="inforbook">
			<div>
				<table class="dashboard-content">
					<tr>
						<td width="120px"><%= t('Code') %></td>
						<td><%= @book.code %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Tittle') %></td>
						<td><%= @book.title %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Author') %></td>
						<td><%= @book.author %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Category') %></td>
						<td><%= @category.name %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Price') %></td>
						<td><%= @book.price %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Quantity') %></td>
						<td><%= @book.quantity %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Current Quantity') %></td>
						<td><%= @book.current_quantity %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Number of view') %></td>
						<td><%= @book.numviewed %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Number of borrow') %></td>
						<td><%= @book.numborrowed %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Description') %></td>
						<td width="120px"><%= @book.description %></td>
					</tr>
				</table>
				<br/>
				<br/>
				<div class="buttonsadmin">
					<%= link_to t('Update'), editbooks_manager_books_path(@book), :class => "button" %>
					<%= link_to t('Back'), indexbooks_manager_books_path, :class => "button" %>
				</div>
			</div>
		</div>
	</div>
</div>